package com.demon.example.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * UserPO 实体类
 *
 * @author Demon-HY
 * @since 1.0
 */
@Data
@NoArgsConstructor
@ApiModel("用户信息 实体类")
@Table(name = "`user_info`")
public class UserPO implements Serializable {

    private static final long serialVersionUID = -1L;

    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "`user_id`")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "手机号")
    @Column(name = "`phone`")
    private String phone;

    @ApiModelProperty(value = "昵称")
    @Column(name = "`nick`")
    private String nick;

    @ApiModelProperty(value = "密码")
    @Column(name = "`password`")
    private String password;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "`create_time`")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @Column(name = "`update_time`")
    private Date updateTime;


}